<template>
	<view>
		{{obj}}
	</view>
</template>

<script>
	import {
		MyRequest
	} from '../../network/HomeRequest.js'
	export default {
		onLoad(options) {
			this.iid = options.iid;
			// 请求该iid下面的数据
			this._requestDetail(this.iid)
		},
		data() {
			return {
				iid: "", //iid
				obj:{}, // 该iid对应的对象
			};
		},
		methods: {
			_requestDetail(iid) {
				MyRequest({
					url:"/detail",
					data: {iid},
				}).then(res => this.obj = res.data.result)
			}
		}
	}
</script>

<style lang="less">

</style>
